local function script_path()
  local str = debug.getinfo(2, "S").source:sub(2)
  return str:match "(.*/)"
end

local cmd_path = script_path() .. "../utils/bin/im-select" .. "-" .. vim.loop.os_uname().machine

return {
  -- {
  --   "keaising/im-select.nvim",
  --   main = "im_select",
  --   -- build = '/bin/bash -c "$(curl -fsSL https://gitee.com/hevey88/im-select/raw/master/install_mac.sh)"',
  --   enabled = vim.fn.has "mac" == 1,
  --   event = "VimEnter",
  --   opts = {
  --     set_previous_events = {},
  --     default_command = cmd_path,
  --   },
  -- },
  {
    "yianwillis/vimcdoc",
    event = "VeryLazy",
    -- build = "sh vimcdoc.sh -i",
    config = function()
      vim.o.helplang = "cn"
      vim.opt.rtp:append(vim.fn.stdpath "data" .. "/lazy/vimcdoc")
    end,
  },
}
